package com.mdxx.patrol.web;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.mdxx.patrol.system.param.EmpQueryListParam;
import com.mdxx.patrol.system.service.IEmployeeService;

@Controller
@RequestMapping(value = "/test")
public class HiController {
	@Resource
	private IEmployeeService empService1;

    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    @ResponseBody   
    public String hello(){//测试
    	EmpQueryListParam param=new EmpQueryListParam();
    	param.setNum(10);
    	param.setStart(0);
    	param.setKey("");
    	
    	return JSON.toJSONString(empService1.queryList(param));
//        return "2222";
    }

    @RequestMapping(value = "/page", method = RequestMethod.GET)
    public String page(){
        return "hello";
    }

}
